package com.example.controller;

import com.example.service.EchartsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/ans")
public class EchartsController {
    @Resource
    public EchartsService echartsService;

    @GetMapping("/echarts")
    public List<Map<String, Object>> getMBTIDataForEcharts() {
        return echartsService.getMBTIDataForEcharts();
    }
}
